/**
 * CubeFace.java
 * Part of the Particle Physics Simulator
 * By Wilson Burhan and Tyler Simrell
 * Code based on code written by Matthew Alden
 * Version 1.0
 * Date Finished: 5/8/13
 */
import javax.vecmath.Tuple3f;
import javax.vecmath.Vector3f;

/**
 * This class creates all the relavant data for the extent.
 * @author Matthew Alden, modified by Tyler Simrell and Wilson Burhan
 */
public class CubeFace 
{
	public Vector3f position;
	public Vector3f normal;
	public float intercept;
	
	public CubeFace(float positionX, float positionY, float positionZ,
			float normalX, float normalY, float normalZ)
	{
		position = new Vector3f(positionX, positionY, positionZ);
		normal = new Vector3f(normalX, normalY, normalZ);
		normal.normalize();
		intercept = normal.dot(position);
	}
	
	public CubeFace(Tuple3f position, Tuple3f normal)
	{
		this(position.x, position.y, position.z, normal.x, normal.y, normal.z);
	}
}
